package com.test.kotlin03

import java.io.File

fun applyTest(){
    val file1 = File("E://i hava dream_copy.text")
    file1.setReadable(true)
    file1.setWritable(true)
    file1.setExecutable(true)

    val file2 = File("E://i hava dream_copy.text").apply {
        setReadable(true)
        setWritable(true)
        setExecutable(true)
    }

}

fun main(){
    applyTest()
}